def writer(file_path, lst):
    with open(file_path, 'w') as file:
        file.write(','.join(lst))


def read(file_path):
    with open(file_path) as file:
        s = file.read()
    return s.split(",")


if __name__ == '__main__':
    writer("lst.txt", ["1", "2", "3", "a", "b", "c"])
    lst = read("lst.txt")
    print(lst)
